<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="/WEB-INF/template/basicTemplate.xhtml">
		<head>
		<title>
			<h:outputText value="#{msg.ticket}" />
		</title>
		</head>
		<br />
		
		<br />
		<br />
	<ui:define name="content">
		
		<h:form id="main"> 
		<div align="center">
			<h2></h2>
			<h:dataTable id="dtl" value="#{loginBean.bilete}" var="item" >
  				<h:column>
    				<f:facet name="header">
       					<h:outputText value="ID" />
    				</f:facet>
     				<h:outputText value="#{item.id}" />
  				</h:column>
  				<h:column>
    				<f:facet name="header">
       					<h:outputText value="#{msg.lastname}" />
    				</f:facet>
     				<h:outputText value="#{item.lastname}" />
  				</h:column>
  				<h:column>
    				<f:facet name="header">
       					<h:outputText value="#{msg.firstname}" />
    				</f:facet>
     				<h:outputText value="#{item.firstname}" />
  				</h:column>
  				<h:column>
    				<f:facet name="header">
       					<h:outputText value="#{msg.motive}" />
    				</f:facet>
     				<h:outputText value="#{item.motiv}" />
  				</h:column>
  				<h:column>
    				<f:facet name="header">
       					<h:outputText value="#{msg.start}" />
    				</f:facet>
     				<h:outputText value="#{item.start_time}" />
  				</h:column>
  				<h:column>
    				<f:facet name="header">
       					<h:outputText value="#{msg.end}" />
    				</f:facet>
     				<h:outputText value="#{item.end_time}" />
  				</h:column>
  				<h:column>
    				<f:facet name="header">
       					<h:outputText value="#{msg.status}" />
    				</f:facet>
     				<h:outputText value="#{item.status}" />
  				</h:column>
  				
  				<h:column>
    				<f:facet name="header">
       					<h:outputText value=" " />
    				</f:facet>
     				<h:commandButton 
     				image="/resources/images/check.png"/>
     				<!-- 	<f:param name="button" value="#{item.id}" />  
     				</h:commandButton> -->
  				</h:column>
  				<h:column>
    				<f:facet name="header">
       					<h:outputText value="#{msg.refuse}" />
    				</f:facet>
     				<h:commandLink id="alma" action="#{loginBean.logOut()}" value="alma"/>
  				</h:column>
			</h:dataTable>
			<br></br>
			
			<br></br>

			
			<h:commandButton
				value="#{msg.back}" styleClass="button" action="#{loginBean.inapoiTL()}"/> <br></br>
			
			<h:commandButton
				value="#{msg.logout}" styleClass="button" action="#{loginBean.logOut()}"/> <br></br>
				
				<h:messages styleClass ="errorMessage"></h:messages></div>

		</h:form>
	</ui:define>

</ui:composition>

</html>



				